//
//  APPInfo.swift
//  手账
//
//  Created by zhuxiaoxiang on 2018/11/15.
//  Copyright © 2018年 zhuxiaoxiang. All rights reserved.
//

import UIKit

class APPInfo: NSObject {
    static func getCurrentVersion() -> String {
        let infoDict = Bundle.main.infoDictionary
        var majorVersion: String = ""
        if let infoDict = infoDict {
            majorVersion = infoDict["CFBundleShortVersionString"] as? String ?? "1.0.0"
        }
        return majorVersion
    }
}
